%compare results

%DATResults = [
%   'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_19_005_15.xml';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis.xml   ';
%    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/FinalTest_Seq1_Thesis_15.xml';
%    ];

DATResultsSeq1 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_Seq1_Thesis_15_fa020.xml';
    ];

DATResultsHighRes1 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes1_Thesis_15_fa020.xml';
    ];

DATResultsHighRes2 = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_19_005_15_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_10_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_15_fa010.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_10_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_15_fa015.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_10_fa020.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Final_v12_HighRes2_Thesis_15_fa020.xml';
    ];

DATResultsPerfect = [
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Seq1_Perfect_v12_10.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/Seq1_Perfect_v12_15.xml    ';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes1_Perfect_v12_10.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes1_Perfect_v12_15.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes2_Perfect_v12_10.xml';
    'D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Results/HighRes2_Perfect_v12_15.xml';
    ];

MOTA = zeros(12,3);
MOTP = zeros(12,3);
MOTP_ST = zeros(12,3);
MOTP_BT = zeros(12,3);

MOTA_P = zeros(2,3);
MOTP_P = zeros(2,3);
MOTP_ST_P = zeros(2,3);
MOTP_BT_P = zeros(2,3);

%for i=1
%    [MOTA_P(i,1) MOTP_P(i,1) MOTP_ST_P(i,1) MOTP_BT_P(i,1)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTSeq1.xml', DATResultsPerfect(i,:) , 1);
%    [MOTA_P(i,2) MOTP_P(i,2) MOTP_ST_P(i,2) MOTP_BT_P(i,2)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes1.xml', DATResultsPerfect(i+2,:) , 1);
%    [MOTA_P(i,3) MOTP_P(i,3) MOTP_ST_P(i,3) MOTP_BT_P(i,3)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes2.xml', DATResultsPerfect(i+4,:) , 1);
%end

for i=8:10
    [MOTA(i,1) MOTP(i,1) MOTP_ST(i,1) MOTP_BT(i,1)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTSeq1.xml', DATResultsSeq1(i,:) , 1);
    [MOTA(i,2) MOTP(i,2) MOTP_ST(i,2) MOTP_BT(i,2)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes1.xml', DATResultsHighRes1(i,:) , 1);
    [MOTA(i,3) MOTP(i,3) MOTP_ST(i,3) MOTP_BT(i,3)] = compareData2('D:/Usagers/matre697/Maitrise/Code/DATManager/bin/Groundtruth/GTHighRes2.xml', DATResultsHighRes2(i,:) , 1);
end
% 
%save('perfectResultsCLEAR_v12.mat', 'MOTA_P', 'MOTP_P', 'MOTP_ST_P', 'MOTP_BT_P');
% save('finalResultsThesisCLEAR.mat','MOTA', 'MOTP', 'MOTP_ST', 'MOTP_BT');